#pre-requisites
source /pentest/AH/pentest.config
_smbOut=/job/smblogin/
mkdir ${_smbOut}
echo "Need to add a way to check the existence of the /job/ssh, but generically across all autoscripts"

#body
query='select ipaddress from services where port = "445" and state = "open"'
#cmd="ncrack -v -T5 --user root -P /opt/framework-latest/msf3/data/wordlists/unix_passwords.txt \${1}:22 > ${_sshOut}\${1}.ssh"
cmd="ncrack -v --user administrator --pass InfServ#01 -T5 \${1}:445 > ${_smbOut}\${1}.smb"
/opt/python3/bin/python3 /root/workspace/q2ex/src/q2ex.py -d /job/test.db -q "$query" -c "$cmd"

#post-requisites
